import http from "../../axios";

/**
 * 查询部署
 */
export const getprocesslists = (params:any)=>{
    return http.post(`/flow/manage/getprocesslistsVue?pageSize=${params.pageSize}&pageNum=${params.pageNum}`,params);
}
export const suspendProcessDefinitionvue = (params:any)=>{
    return http.get(`/flow/manage/suspendProcessDefinitionvue?pdid=${params.pdid}&flag=true&date=${params.date}`,params);
}
export const deleteMangeById = (params:any)=>{
    return http.post(`/flow/manage/removeVue?deploymentId=${params.pdid}`,params);
}

export const listHistoryProcessVue = (params:any)=>{
    return http.post(`/flow/monitor/listHistoryProcessVue?pageSize=${params.pageSize}&pageNum=${params.pageNum}&name=${params.name}&bussinesskey=${params.bussinesskey}`,params);
}

export const traceProcessVue = (params:any)=>{
    return http.get(`/flow/monitor/traceProcessVue/${params.processInstanceId}`,params);
}
export const historyVue = (params:any)=>{
    return http.post(`/flow/monitor/historyVue/${params.processInstanceId}?pageSize=${params.pageSize}&pageNum=${params.pageNum}`,params);
}
